package config

import "strings"

// 根目录配置过滤
func rootReplace(c *Config) {
	if c.FromType != "" {
		config.FromType = strings.ToLower(c.FromType)
	}
	if c.MaxLimit > 0 {
		config.MaxLimit = c.MaxLimit
	}
	if c.FileName != "" {
		config.FileName = c.FileName
	}
}
